<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/struts-tags"  prefix="s" %>
<base href="<%=basePath%>">
<h2 class="contentTitle">用户添加</h2>


<div class="pageContent">
	<form method="post" action="user_add.action" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="97">

			<dl>
				<dt>用户名:</dt>
				<dd>
					<input type="text" name="user.username" maxlength="20" class="required" />
					<span class="info">**必填**</span>
				</dd>
			</dl>
			<dl>
				<dt>密码：</dt>
				<dd>
					<input id="w_validation_pwd" type="password" name="user.password" class="required alphanumeric" minlength="6" maxlength="20" alt="字母、数字、下划线 6-20位"/>
					<span class="info">**必填**</span>
				</dd>
			</dl>
			<dl>
				<dt>确认密码：</dt>
				<dd>
					<input type="password" name="password" class="required" equalto="#w_validation_pwd"/>
					<span class="info">**必填**</span>
				</dd>
			</dl>
			<dl>
				<dt>真实姓名：</dt>
				<dd>
					<input type="text" name="user.realname" maxlength="20" class="required" />
					<span class="info">**必填**</span>
				</dd>
			</dl>
			<dl>
				<dt>用户类型：</dt>
				<dd>
					<input  type="radio" name="user.kind" value="0"/><span>管理员</span>
				    <input type="radio" name="user.kind" value="1" checked/><span>茶农</span>
				    <input  type="radio" name="user.kind" value="2"/><span>加工厂</span>
				    <input  type="radio" name="user.kind" value="3"/><span>销售商</span>
				</dd>
			</dl>
			<dl>
				<dt>联系方式：</dt>
				<dd>
					<input type="text" name="user.telephone" class="phone" alt="请输入您的电话"/>
					<span class="info">**必填-数字**</span>
				</dd>
			</dl>
			<dl>
				<dt>详细地址：</dt>
				<dd>
					<input type="text" name="user.address" maxlength="20" class="required" />
					<span class="info">**必填**</span>
				</dd>
			</dl>
			<dl>
				<dt>企业名称：</dt>
				<dd>
					<input type="text" name="user.companyname" maxlength="20" class="required" alt="企业名称"/>
					
				</dd>
			</dl>
			<dl class="nowrap">
			<dt>企业简介：</dt>
				<dd>
					<textarea name="user.introduction" cols="50" rows="3" class="required"></textarea>
				</dd>
			</dl>
			
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>
